home *** CD-ROM | disk | FTP | other *** search
- Path: atglab.bls.com!Alun.Champion
- From: Alun.Champion@bridge.bst.bls.com (Alun Champion)
- Newsgroups: comp.lang.c++
- Subject: Re: Dynamic Multi-Dimen. Array
- Date: 11 Jan 1996 16:58:45 GMT
- Organization: Computer People Inc.
- Message-ID: <ALUN.CHAMPION.96Jan11115845@g7240065.bridge.bst.bls.com>
- References: <4d337m$lug@news.gate.net>
- NNTP-Posting-Host: bstfirewall.bst.bls.com
- In-reply-to: porter@gate.net's message of 11 Jan 1996 13:27:18 GMT
-
- In article <4d337m$lug@news.gate.net> porter@gate.net (Todd Porter) writes:
-
- : I need to create an array like float[x][3] where the x can change. I want to
- : dynamically allocate the memory when I figure out what the x is - Can anyone
- : help out with this?
-
- How about:
-
- float (*x)[3];
- int size;
- ...
- size = ???;
- x = new float[size][3];
-
- Regards
-
- -A.
- --
- | A.Champion |
-